#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include<QLabel>
#include <QMouseEvent>
#include "qtproject.h"

namespace Ui {
class login;
}

class login : public QWidget
{
    Q_OBJECT

public:
    explicit login(QWidget *parent = 0);
    ~login();

protected:
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

private slots:
    void on_minButton_clicked();

    void on_closeButton_clicked();

    void on_loginButton_released();


private:
    Ui::login *ui;
    QLabel* m_label;
    QPoint mousePoint;
    bool mouse_press;
};

#endif // LOGIN_H
